import { createSlice, PayloadAction, createAsyncThunk } from "@reduxjs/toolkit";
import { useHistory } from "react-router";
import axios from "axios";
// import cookie from "react-cookies";
interface PlayerState {
  mmm: any;
}

const initialState: PlayerState = {
  mmm: "pause",
};

export const playerSlice = createSlice({
  name: "player",
  initialState,
  reducers: {
    setmmm: (s, a) => {
      s.mmm = a.payload;
    },
  },

  extraReducers: {},
});
